home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
CU Amiga Super CD-ROM 17
/
CU Amiga Magazine's Super CD-ROM 17 (1997)(EMAP Images)(GB)[!][issue 1997-12].iso
/
CUCD
/
Programming
/
DiceSource
/
test
/
lib
/
system.c
< prev
next >
Wrap
C/C++ Source or Header
|
1992-11-23
|
278b
|
26 lines
/*
* test/system.c
*
*/
main(ac, av)
char *av[];
{
int r;
int i;
int rep = 1;
if (ac == 1) {
puts("system cmd");
exit(1);
}
if (ac == 3)
rep = atoi(av[2]);
for (i = 0; i < rep; ++i) {
r = system(av[1]);
printf("result %d\n", r);
}
}